/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.q3and4.singlleresponsibilityprin.infrastructure;

import org.springframework.beans.factory.annotation.Configurable;
import org.springframework.context.annotation.Bean;
import za.ac.cput.q3and4.singlleresponsibilityprin.model.obey.ConnectionInterface;
import za.ac.cput.q3and4.singlleresponsibilityprin.model.obey.DataChannelInterface;
import za.ac.cput.q3and4.singlleresponsibilityprin.model.obey.ModemImplement;

/**
 *
 * @author user
 */
@Configurable
public class SingleresponConfig {
    @Bean(name = "srp")
    public ConnectionInterface getModenImpl(){
        return new ModemImplement();
    }    
    @Bean(name = "srp")
    public DataChannelInterface getModenImpli(){
        return new ModemImplement();
    }    
}
